<?php
// +----------------------------------------------------------------------
// | title: 武将技能研究日志
// +----------------------------------------------------------------------
// | Author: TZ.Leong
// +----------------------------------------------------------------------
// | Date: 2019/11/19 10:21
// +----------------------------------------------------------------------

return array(
    1 => array(
        "title" => "技能激活日志",
        'table_name' => "hero_activate_skill",
        "where" => array(
            'role_id' => array('name' => '玩家ID','type' => 'text','value' => ''),
            'nickname' => array('name' => '角色名','type' => 'text','value' => ''),
            'log_time' => array('name' => '时间','type' => 'date','values' => array('start_date' => date('Y-m-d'),'end_date' => date('Y-m-d'))),
        ),
        "where_merge" => [],
        'show' => array(
            'role_id' => '玩家ID',
            'nickname' => '角色名',
            'type' => ['激活类型', 'function' => 'getTypeName', 'param' => ['config' => 'hero_activate_skill_type', 'field' => 'type']],
            'skill_id' => array("技能名称","function" => "itemName","param" => ['field' => 'skill_id', 'config' => 'skill_study']),
            'log_time' => array("时间","function" => "changeDate"),
        )
    ),
    2 => array(
        "title" => "技能研究日志",
        'table_name' => "hero_study_skill",
        "where" => array(
            'role_id' => array('name' => '玩家ID','type' => 'text','value' => ''),
            'nickname' => array('name' => '角色名','type' => 'text','value' => ''),
            'log_time' => array('name' => '时间','type' => 'date','values' => array('start_date' => date('Y-m-d'),'end_date' => date('Y-m-d'))),
        ),
        "where_merge" => [],
        'show' => array(
            'role_id' => '玩家ID',
            'nickname' => '角色名',
            'skill_id' => array("技能名称","function" => "itemName","param" => ['field' => 'skill_id', 'config' => 'skill_study']),
            'cost' => ['消耗武将', 'function' => 'consume', 'param' => ['field' => 'cost', 'config' => 'hero']],
            'addstudy' => '研究进度增加',
            'log_time' => array("时间","function" => "changeDate"),
        )
    ),
);